package com.kehao.account_book.pojo;




import java.io.Serializable;

public class ClientExpenditure  {
    public static final int STATUS_ADD = 0;
    public static final int STATUS_REMOVE = -1;
    public static final int STATUS_LOCAL_CHANGE = 1;
    public static final int ANCHOR_SYNC = 9;

    private String username;
    //date
    private int year;
    private int month;
    private int day;
    //time
    private int hour;
    private int min;
    private int second;

    private int type;
    private double money;
    private String comment;

    private int status;
    private int anchor;

    public ClientExpenditure(){

    }

    public ClientExpenditure(Expenditure expenditure){
        this.username = expenditure.getUsername();
        this.year = expenditure.getYear();
        this.month = expenditure.getMonth();
        this.day = expenditure.getDay();
        this.hour = expenditure.getHour();
        this.min = expenditure.getMin();
        this.second = expenditure.getSecond();
        this.type = expenditure.getType();
        this.money = expenditure.getMoney();
        this.comment = expenditure.getComment();
        this.status = 9;
        this.anchor = expenditure.getModify();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getAnchor() {
        return anchor;
    }

    public void setAnchor(int anchor) {
        this.anchor = anchor;
    }
}
